<?php
return array (
    'service_manager' => array(
        'factories' => array(
            'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
            // include the pdo resource factory
            'PdoResource' => 'Application\Db\Service\PdoResourceFactory',
        ),
    ),
    // db adapter config
    'db' => array(
        'driver'    => 'pdo',
        'dsn'       => 'mysql:dbname=guild;host=localhost',
        'username'  => 'root',
        'password'  => '',
    ),

    'doctrine' => array (
        'connection' => array (
            'orm_default' => array (
                'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
                // use the resource from the zend adapter 
                'pdo' => 'PdoResource',
            ),
        
//        'ApplicationYamlDriver' => array(
//                'class' => 'Doctrine\ORM\Mapping\Driver\YamlDriver',
//                'cache' => 'array',
//                'extension' => '.yml',
//                'paths' => array('Applicztion/Model/Yml'),
//            ),
//            'orm_default' => array(
//                'drivers' => array(
//                    'Application\Entity' => 'ApplicationYamlDriver',
//                )
//            )
    
        ),
    ),
);